package com.meng.mini.spring;

import com.meng.mini.spring.context.ClassPathXmlApplicationContext;
import com.meng.mini.spring.beans.BeansException;
import com.meng.mini.spring.test.TestService;

/**
 * @author Meng Xu
 * @version 1.0.0
 * @date 2024-01-15 17:23
 **/
public class TestMain {


    public static void main(String[] args) throws BeansException {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("xml/Meng-Mini-Spring-Context.xml");
        TestService testService = (TestService) classPathXmlApplicationContext.getBean("testServiceImpl");
        testService.sayHello();
    }
}
